
import request from '@/utils/request'

// -------- 小讲习题列表 --------

let BASE_ADDRESS = '/work/talkSubject'


//分页查询
export const getTalkSubjectListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}


//id查询
export const getTalkSubjectGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

//修改
export const getTalkEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}